import openpyxl as xl

wb=xl.load_workbook("medal level.xlsx")
sheet=wb["Sheet1"]
cell=sheet["a1"]
cell=sheet.cell(3,3)
cell.value=2000
#print(cell.value)
#print(cell.value)
#print(sheet.max_row)

for row in range(2,sheet.max_row -1):
    cell=sheet.cell(row+1,2)
    print(cell.value)
    print(type(cell.value))
    cell1= sheet.cell(row + 1, 3)
    print(cell1.value)
    print(type(cell1.value))
    total_expense=cell.value+cell1.value
    total_cell=sheet.cell(row+2,3)
    total_cell.value=total_expense
    wb.save("medal level2.xlsx")